recoder function

Recodes the values of a character vector