remove trailing ==