New factory to use StrinResource as to check against a string