Move away from deprecated string size methods.