try to resolve issues with trailing spaces on parameters