Mapped strings code doubt

code link : https://pastebin.com/GnH0Wq8K
please correct my code unable to remove errors