removed superfluous semicolon
fixed typo and replaced with string::compare