Supporting startswith.
Completed startswith and endswith.