What is the value of low when you're trying to call charAt() on it? What value are you passing in to that function? Make sure by using a debugger or adding a print statement.

And int operations...