Add safe string helper.