removes unecessary "."