I think we could get rid of the .trim() calls (for performance sake) but I don't want to break anything so I'll leave them.