def indent(string: str) ->str:
    """Indent string with two spaces.

    If the string is not None or empty, add two spaces at the beginning of every line
    inside the string.
    """
    return '  ' + string.replace('\n', '\n  ') if string else string
