simplify logic to strip all title tags