trim valuePath, adding default value