You can use MCStringFirstIndexOfChar here to find the index that ':' is at.