replace function general so all ' are removed

layer url end ' removed