Fix double require of dojo/string.
Optimize variables declarations.