remove malloc and branch in StackPopString()