Migration to ES5 functions for dojo/string (only the trim() function is concerned).