Fixing std input

Using char_at seems to be a nice solution.