Update StringAlgs.java

Added the psuedocode. Updated the logic to remove the breaks