COMMON: Add erase method to String class