There's actually a #validate_key method right above this one that should be deleted. It looks like you fixed its string interpolation bug.