1. removed regex code which was used earlier to check if a string is url. (regex code taken from django) 2. Now checking if a string starts with http(s) or ftp(s).