concatenating string only if they are not valid and not empty in js code example Example: js if string not empty if (!str.length) { ...