def map_chars(inline, cmap):
    """
    Replaces all characters of the inline string with the values form the
    cmap dict. If the char is not in the map it will remain unchanged.

    Args:
        inline (str): Input string.
        cmap(dict): A dictionary to use for translation.
    """
    return "".join([cmap.get(c, c) for c in inline])