Fix bug of sending empty string to Parser. Stack  for previous commands now does not save empty strings.