Update 05Remspace.md

Fixed the issues in the program , program was always trimming the second and other occurrence of spaces.