I think you need to escape the dot, since it's treated as a regex.  Maybe `'\\.'`?