Provide format selection dialog with preselected format string
Bugfix: change error message to reflect error
Code formatting