Added changes in input string interpretation, changed y to Y