If you want to avoid the / you could test the system flag of e in order to decide if it's a system or a staff text. Same logic could be applied below when creating the properties dialog.