Ignore period, comma and question mark from the very end of URL if its last character of it