working on string matching for method specification