tests for string match