properties: simple logic cleanup
properties: allows Mozilla to strip trailing whitespace

- Extend Mozilla flavour to strip all whitespace.
- Adapt tests to allow us to test Java and Mozilla behaviour on the same
  referance string.