from typing import Optional


def indent(prefix: str,
           s: str,
           suffix: str = '',
           firstPrefix: Optional[str] = None) \
        -> str:
    """
    Indent a possibly multiline string (s) with a given "prefix".
    If "firstPrefix" is specified then it is used for the first line.
    A "suffix" can also be provided.
    """
    prefix1 = prefix if firstPrefix is None else firstPrefix
    lines = s.split('\n')
    out_Lines = [prefix1+lines[0]+suffix]
    out_Lines.extend([prefix+l+suffix for l in lines[1:]])
    return '\n'.join(out_Lines)