now just need to remove sapce before name and slug in modules array. we can do that by using indexof..