def replace_tabs(string: str, tab_width: int = 4) -> str:
    """Takes an input string and a desired tab width and replaces each \\t in the string with ' '*tab_width."""

    return string.replace('\t', ' '*tab_width)