Replace spaces, validate string

 - replace spaces with nothing (test code is human readable)
 - added temp and log file extensions in .`gitignore` 
 - validate the constructor of `problem` field