Allow zero-length Strings in Replacer.
Fix warnings in ConfigurationTest and MessagesTest.