public static String longestPalindrome(String s) {
	
		String longestString = "";
		
		for(int i = 0; i < s.length(); i++) {
			for(int j = i ; j < s.length(); j++) {
				if(isPalindrome(s, i, j)) {
					String temp = s.substring(i, j + 1);
					if(temp.length() > longestString.length()) {
						longestString = temp;
					}
				}
			}
		}
		
		return longestString;
	}