Error handling added for create char more handling