replace blank in string

multiple methods to replace blank in string.