Write a python function that computes and returns the palindrome score of a string.
When calculating the string "Tacocat" we should get back a rating of 1.
Be sure to include a guardian pattern that returns 0 for non- strings.