Slight RegExp speed improvement