Ah, yup - missed that.  You want str[1] == ':' though I think?