A quick search suggests that we can `.trim()` instead of regexing it in all modern browsers.