answer on StackOverflow, to make sure there's a trim method available.">