fixed consume error when passing strings to functions