dynamically removing duplicate titles from body