remove trailing "."