Remove non-needed options.
Search from beginning of line.