Figured out sstream conversions and palindrome checking