Update StringAlgs.java

Added the psuedocode. Updated the logic to remove the breaks
Merge pull request #1 from franticdeli/patch-1

Update StringAlgs.java