consolidate padding rule in one line
Less string comparisons and more function calls!