strip value before comparing

the value is returned with a \n
change properties to parameters

because they are not discoverable!