Shrinkify string functions with pointer tricks