updated for testing tomorrow, added additional check in compareString, and less getStringLength calls

last for the night I am not kdding