fix switch str