Differentiate between strings and numbers in hashes