Adds more missing if checks to the width and height string functions.