initialize str properly