That usage of strtrim is the same in the latest versions, suggesting that the real issue occurs at least one step back.
GUIDE has never promised backwards compatibility, and the release notes seldom seem to mention compatibility limitations on GUIDE or work-arounds for them.
Sorry, I don't know if re-saving an existing GUIDE gui would help. Possibly, though, we might be able to suggest how that bit of code might be changed, if you can show us the code near the error in restoreToolbarToolPredefinedCallback