Use the trim function from the string utils.
Authored by: steveking 2015-10-15
Parent: [r1085]
Child: [r1087]