Hello.
You are invoking the method calls in chain.
So what is happening is first 'A' is converted into 'Y' and then 'Y' into 'O'. Thats why you are getting 'O'.
Instead of that you should...