Insert Hyphen after every 4th character in input.

Hi All,

 

I have a requirement, have to separate the string with a Hyphen(-) after every 4th character entered by the use, also it should not count space as string and should ignore it.

  Discussion posts and replies are publicly visible