fixed title case and edge white space in insertion