Removed checking for Null character
Switched to try except block for speed
Scales better now.