BeginTextCommandDisplayHelp("STRING")
AddTextComponentSubstringPlayerName("some text ~INPUT_CONTEXT~ some other")
EndTextCommandDisplayHelp(0, 0, 1, -1)

Something like this (typed from phone)