Adjusted some whitespace in val.cc.
Replaced replace with variadic templated replace.