fixed minor errors in StringStuff.java and added test functions to run in Driver