util: startswith and endswith