split character into separate class