using case instead of if/else, splitting strings to not be too long