Instead of repeatedly concatenating strings using push_str, consider using a String buffer or the format! macro for efficient string concatenation.