Trim extra whitespace for Windows support