Removed endsInCommaRe pattern for performance.