Streamline code involving .= string concatenations