def _get_command_name(command_raw):
    """Return command name by splitting up DExTer command contained in
       command_raw on the first opening paranthesis and further stripping
       any potential leading or trailing whitespace.
    """
    command_name = command_raw.split('(', 1)[0].rstrip()
    return command_name