You already have a regular expression :)

So it's "regular expression better than trim + regular expression)