Update compare.py

Removes leading and trailing spaces from values. Goal #1 accomplished!