public static boolean isPalindrome(String str) {
		for (int i = 0, j = str.length() - 1; i < j; i++, j--) {
			char a = str.charAt(i);
			char b = str.charAt(j);
			if (!(Character.isLowerCase(a) || Character.isUpperCase(a))) {
				j++;
				continue;
			}
			if (!(Character.isLowerCase(b) || Character.isUpperCase(b))) {
				i--;
				continue;
			}
			String aStr = "" + a;
			String bStr = "" + b;

			if (!aStr.equalsIgnoreCase(bStr))
				return false;

		}
		return true;
	}