If you use doublequotes, the char inside will be treated as a C-style string. That's wrong, although the compiler might be extra smart about it. Use single quotes for single chars.