Added test for string size in truncate() method