Tweaking regex for palindrome