Yami Odymel https://invade.tw/ says to YSITD
「The second argument to substring is the index to stop at (but not include), but the second argument to substr is the maximum length to return」