Factored out the 'y' and 'n' characters to constants and utility methods for converting to and from boolean