Make the chars constructor more flexible