Add trimWhitespace function
Trim whitespace when loading marker names