Find the type of data inside a Ruby String