Added new function for space adding in string.