Fixed IndexOutOfBoundsException in parseTimeString