use startswith/endswith.