added checking for non standard char