checked if the value was a string before forcing uppercase