remove trailing whitespace from autogenerated title on event add form