Removing trailing period