Fix/menu item title validation

WP [#14787](https://www.openproject.org/work_packages/14787)
Space missing to the left of {.<br>Space between { and | missing.<br>Space missing inside }.