Agreed -- a simple indexOf+slice seems cleaner to me too.