Improved input width and pattern