Welcome to the Ranch
I have added
code tags to your post, and you can see how much better it looks. Always use spaces, not tabs, for indenting.
You are going about this the wrong way.
You should divide your work into smaller pieces, like this:
1: Remove spaces from string2: Convert to consistent case3: Check whether palindromeYou can make those all methods of a utility class.
You should work out with paper pencil and eraser (the latter is the most important piece of hardware) how you intend to do it. Write out a String like this on paper:
davo tigora
Get rid of the spaces
Work out how you can tell whether it is or is not a palindrome.
Now you can convert that to code easily.