Strip trailing period from prefix.