Fish Wang
says to
YSITD
str.match(/^.{0,3}/)[0]