add keymap to convert string to symbol in ruby