Fixed up the test/and set flag methods to not do string manipulation which was a dumb/silly way to do it.  It works now