Change history search to use current string

The other way only uses the first word instead of the entire string. I believe this fixes this error.