So i found the answer to my problem with help from "bellabax" I overrid the Properties persister and implemented my own method
propertyConfigurator.setPropertiesPersister(new MyDefaultPropertiesPersister());
@Override
public void load(Properties props, InputStream is) throws IOException {
props.load(is);
for (Entry<Object, Object> property : props.entrySet()) {
property.setValue(property.getValue().toString().trim());
}
}
Now my properties are trimmed of trailing space I hope this helps some one.