added ability to handle multiple characters