String (String input) { return extractFirstWord(input) .filter(firstWord -> RUN_COMMAND.getCommandWithPrefix().startsWith(firstWord) || DEBUG_COMMAND.getCommandWithPrefix().startsWith(firstWord)) .map(firstWord -> input.substring(firstWord.length() + 1)) .orElse(input); }