Used map() in pangram instead of allocating a new string