Reverse strings or ints