User class: Optimize Move Folder

the newStr is now located on stack instead of the HEAP => no need to
malloc and free it.