Fix guard's "can't modify string" issue