added JavaDoc to charsToString
added test for charsToString