Java String Index Out Of Range 49