after fiddling with the custom exceptions, an overabundance of output is being produced. Then combine this with the fact that the string handling does not seem to be working properly. more work is in order