def posix_string(s):
    """Return string in lower case with spaces and dashes as underscores

    Args
    ----
    s: str
        string to modify

    Returns
    -------
    s_mod: str
        string with ` ` and `-` replaced with `_`
    """
    return s.lower().replace(' ', '_').replace('-', '_')
