speed up fromString initializing match on begin