remove pointless period