Simon: wordMatch split into separate function