Partially fixed problem where filters at the beginning and ends of the string aren't matched.