after a long troubleshooting, I finally understands what went wrong
This is how I created the pwd.txt file
echo "abcde" > pwd.txt
and by doing so, it generated a UTF-16 encoded file, which has the annoying habit of having invisible characters added to it at the beginning and in between the characters as well ...
Windows stuffs