Fixed wrong calculate string size