Fixed trailing space not being trimmed on Windows.