* strip leading-, and trailing spaces from the string before comparing * fix a problem where trailing spaces weren't removed