Update the solution according to Blake's comments

The random space inside the brackets here is weird.