Converted if-else to switch
Small change from format tool