add character set in pattern