ArrayIndexOutOfBoundsException: 1 error when using String[] and split()

Also use if… to check out if data is there