Fixed searching for special characters

Fixed searching for special characters and for last names with single quotes, and strings with periods ( version number 25.4 )

Included tests.