How can I change the follow part of arduino code to receive the entore string like "Read" "Write" istead "r" or "w" on this:
Nothing in that snippet has anything to do with receiving anything. As I pointed out in your other thread, a char array and strcmp() are needed.