add Hai constructor which constructs from const char *