Fix typo in function name
Replace ' ' and '/' in statman keys with '_' and '.'