def replace_num(phrase, val):
    """ Add a numerical value to a string. """
    if val == 1:
        return phrase.replace('(^)', 'one')
    elif val == 2:
        return phrase.replace('(^)', 'two')
    else:
        return phrase.replace('(^)', 'several')
