It's no trim, but you could try adding a constraint to prevent survey responses from being submitted with trailing whitespace: not(regex(., '\s$'))
The $ within the expression specifically looks for matches at the end of the string. The \s matches any whitespace, including spaces, tabs, and carriage returns (in case you're using this in a multiline text field).
Quick Reference: Regular Expressions