added changes to display text functions to check for empty strings

Signed-off-by: Adam McNicol <adamsorders@mac.com>