Move Trim above the whitespace check, dont use CurrentCulture for consistent results