Added test cases and character lengths
Optimized more characters