replace String#prototype by a dedicated function