doesn't use local variable str1 anymore

Also added test code but commented out