It is possible, but it requires external tools to do so. There are various inventory editorsvarious inventory editors that let you change your player's name and appearance. And, of course, there are tools like TEdit that let you edit a world including the name.
Changing the profile/world filename will not rename the world and those files are encryptednot in plain text so normal text editor will not do.