public static boolean detector(String str){
        //Normalize data in string so it can be analyzed
        str = str.toUpperCase();
        //Replaces all whitespace and non alphabetical characters
        str = str.replaceAll("\\W", "");
        //Split up the string I could have also created a Char array here
        //but this felt like it would work better when comparing later on.
        String[] splitStr = str.split("");
        
        boolean isPalindrome = false;
        
        StackArray<String> stackArr = new StackArray<String>(splitStr.length);
        //fill up the Stack with our string array
        for(int i =0; i < splitStr.length;i++){
            stackArr.push(splitStr[i]);
        }
        //Run through Stack and String array to determine if String is a
        //Palindrome
        for(int i =0; i < splitStr.length;i++){
            if(splitStr[i].equals(stackArr.pop()))
                isPalindrome = true;
            else
                return false;
        }
        return isPalindrome;
    }