properties: fix trailing spaces in key names being stripped