We should create and reuse a `private static readonly Regex whitespaceTrimmer` to avoid re-parsing the regex too often.