fixed the parsing of the arguments. replaced "==" with .equals().