remove trailing .