[JENKINS-16804] Fixed string parsing in foundation baselines