Fix SpaceBeginingOfStenceValidator

- Fixed the exception when input string is zero length