if statement to check service.connection_string

else don't display the dash