Cleaning up splitParamaters()

Combining two lines of codes to one.
Cleaning up of getFirstWord(String ...)

Combining two lines of codes to one.