Strings util: refactors and adds private vars