[tstr sg] avoid using TPTR() in cli code. Use tstr_init() where applicable and other equivalent calculations