You're assuming that there is always no white spaces between ``url(`` and the beginning quote. So this will fail to show url hints if the user types some white spaces before typing a quote.