'Replaces variables from a string. Result is always a string.'

def replace_string(self, string, ignore_errors=False):

    if (not is_string(string)):
        return unic(string)
    if self._cannot_have_variables(string):
        return unescape(string)
    return self._replace_string(string, ignore_errors=ignore_errors)
