Using trim() to clean the empty spaces