format.js: if string is undefined, return