Added character class

Still struggling with input error.