Modify Query Field methods startswith and endswith to escape regex

Additionally added some documentation.