Solve issue with last space / last line at local_actions, local_tasks and menu_links