Can be one line: `return str && str.replace...`