Don't call trim twice

Micro-optimization, won't do a whole lot