Remove unnecessary calls to ostr->str().size()

Change-Id: I7fe76d5ca0b9b734a9d588c0af8451fa96648265
Merge topic 'datawriter-remove-unnecessary-calls' into master

758fcdbc Remove unnecessary calls to ostr->str().size()