Reversing a string


Checking palindrome number


Note: non-digit characters are ignored (so "1 2 1" becomes "121").

Calculating tips