adding format function to String prototype
corrected formatting and menu errors