fix matching for http and removing of string