added support for multiple characters