Fixed guard bug: can't modify string; temporarily locked