Don't need to initialize str to nil.