[Based On Dev]Give a way to specify student last name using braces #2427

for #2427
This four lines are misleading. You are misusing these variables by storing some intermediate data in them.