server-side title validation + cleanup