fixed order of replace items in function prepareURL to match with [[?]]
from config