Reader.getInput() avoids indexOutOfBounds now