Your substring is going from the 6th letter of the chat string to the 5th. What you want to do is 6 -> Length of chat message.
-
Hero - Modify Intelligence of (Picked unit): Add (Integer((Substring((Entered chat string), 5, (Length of chat string))
- = 1
i = 2
n = 3
t = 4
space = 5
6 = the first digit of the integer you typed (if you typed one)