def strip_surrounding_spaces(string):
    """Strip leading and trailing space | str --> str"""
    if string == '':
        return string
    if string[0] == ' ':
        string = string[1:]
    if string[-1] == ' ':
        string = string[:-1]
    return string