app/src/main/java/at/cywl/palindromchecker/PalindromeActivity.java
/**
     * Check if given string is a palindrome
     * @param target string to check
     * @return status message
     */
Check if given string is a palindrome
@param target string to check
@return status message
Check if given string is a palindrome @param target string to check @return status message
protected static String IsPalindrome(Context ctx, String target) {
        if (target == null) return ctx.getString(R.string.text_target_is_null);
        target = target.trim();
        if (target.length() < 5) return ctx.getString(R.string.text_string_too_short);
        boolean result = target.equals(new StringBuilder(target).reverse().toString());
        return result
                ? ctx.getString(R.string.text_palindrome)
                : ctx.getString(R.string.text_not_palindrome);
    }
protected static String IsPalindrome ( Context ctx , String target ) { if ( target == null ) return ctx . getString ( R . string . text_target_is_null ) ; target = target . trim ( ) ; if ( target . length ( ) < 5 ) return ctx . getString ( R . string . text_string_too_short ) ; boolean result = target . equals ( new StringBuilder ( target ) . reverse ( ) . toString ( ) ) ; return result ? ctx . getString ( R . string . text_palindrome ) : ctx . getString ( R . string . text_not_palindrome ) ; }
Check if given string is a palindrome
 @param target string to check
 @return status message
Check if given string is a palindrome @param target string to check @return status message