This can just be `return matchtext == s;`