character manipulation tests