fixed spaces after optimizing computeURL()