Finished startswith and endswith functions.