changed runCommand method to accept String[] instead of single string to be later tokenized