Added trim() to remove unwanted spaces