string.search -> string.indexOf for better performance