When using the Asterisk CLI module, it will always send the input to Asterisk as lowercase.
For example, if you submit:
pjsip show endpoint T15_1234
It will sent to asterisk:
pjsip show t15_1234
And obviously T15_1234 and t15_1234 are two different endpoints in the Asterisk world.