correct chars
add unit-test and correct error