minor changes

fixed string checking for pair and string constructors, removed compiler
warnings