Adjust text size based on width and height of box
Remove double whitespace
Remove unused code