added function to remove leading and trailing white spaces using comprehension