IBM interview question

Implement an algorithm in Java to determine whether a given string is a palindrome, accounting for edge cases such as null inputs or mixed capitalization.