Your original code never would have compiled because of the mix of character types. Therefore, you never would have got an error message. So why did you post the question?