Added trim to output