major performance fix for noregexp search