Handled case of Amazon S3 URL

Handled the case of URl having query string value in it. For example
Amazon S3 URL.