It is necessary to divide into words, tried to use \s , but divides the line into only 2 words, and the rest cause an exception ArrayIndexOutOfBoundsException
String[] ln = com.split("\\s"); Command = ln[0]; try { Attribute1 = ln[1]; }catch (ArrayIndexOutOfBoundsException exc){ } try { Attribute2 = ln[3]; }catch (ArrayIndexOutOfBoundsException exc){ } try { Attribute3 = ln[4]; }catch (ArrayIndexOutOfBoundsException exc){ }