Stack and String bugfixes