Improve string justification functions