it seems the function returns the characters correctly