Removed ctype extension dependency