Don't call stripDots that much, and test valid key before String allocation [#82006712]