added semi working charactercheck