added overloading for Substring/WriteLine/Write