I can confirm that version 1.8.0 accepts this:
trim(both ' ' from ' space ')
So perhaps the reporter is not calling the function correctly?