Move mode to string to the mode class