Refactor syntax unicode setpattern