Crash Fix: java outOfBoundException while diciding a string in parts