fixes bugs in comparing strings and looks fine, however it needs more work
changing a method from private to public to be used in the assembler class