Restrict the initial value usage of a property to types of java.lang.String and correctly trim the value to fix #FELIX-353.