I can only assume that wherever you're echoing it is echoing it twice, for some reason. Perhaps that code is being executed twice or you have it echoing out somewhere else.
I don't have a lot of time today so hopefully someone else will provide more assistance if it is required.