Implemented a fine acceptor based on iteration of acceptable substrings