don't add dot when prefix is empty string