Fix/menu item title validation

WP [#14787](https://www.openproject.org/work_packages/14787)
Line is too long. [93/80]<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.