Forgot to mention, I had
Code:
 line = line.trim();
beforehand (hence matching the if statement).

Definitely matches, but mysteriously times out.