Added trim to avoid errors