def translate(string, c_map):
    """Translate according to character mapping table
    :param str string:
    :param dict c_map:
    :rtype: str
    """
    mapped_string = ''
    for c in string:
        if c in c_map:
            mapped_string += c_map[c]
        else:
            mapped_string += c
    return mapped_string
