added new bytes count to string function

Change-Id: I389e195108285c209ec5a58b7eafe21d434a3ba3