Slight code optimization \(RegExp\)