fix the weird long string not working problem

my guess is the scope or allocation/deallocation thing.