removed some unneeded variables and code.  added a string function and
boolean function.