def __remove_duplicate_chars(string_input, string_replace):
    """
        Remove duplicate chars from a string.
    """
    while (string_replace * 2) in string_input:
        string_input = \
            string_input.replace((string_replace * 2), string_replace)

    return string_input