I did try the zero width space character and it works fine. Problem was I had to write some code snippet which would insert the character after every n characters. I was wondering if there was a "better" CSS approach.
For now I have used the word-wrap as well as the zero width space character.
subject: Word wrapping long text without whitespaces