def checkisPallendrome(inputText):
    inputText = inputText.replace(" ", "")
    inputText = inputText.lower()
    testString = ""
    for i in inputText:
        testString = i + testString
        # print("Test String: " + testString)

    if inputText in testString:
        return True
    else:
        return False


def tester(inputText, expected_result):
    actual_result = checkisPallendrome(inputText)

    print_text = "The text was: " + str(inputText) + " | "
    if expected_result == actual_result:
        print_text += "Correct: " + str(expected_result) + " == " + str(actual_result)
    else:
        print_text += "Incorrect: " + str(expected_result) + " != " + str(actual_result)
    return print_text


if __name__ == "__main__":
    # Try it on these to see if it works?
    text0 = "My foot is a hamburger"
    text1 = "Go hang a salami Im a lasagna hog"
    text2 = "She sells sea shells by the sea shore"
    text3 = "race car"
    text4 = "My school"

    # Test it like this
    print(tester(text0, False))
    print(tester(text1, True))
    print(tester(text4, False))
    print(tester(text3, True))