x.split Giving IndexError: list index out of range