Remove additional spaces from string
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-22 11:47 AM
Hi All,
There are multiple ways to remove additional spaces from a string. like split string by spaces then combine again with one space. Just wanted to check if there any other simple way to do this.
Requirement - remove additional spaces from string.
Example - "Devendra Kumar Prajapati" should be converted to "Devendra Kumar Prajapati"
------------------------------
Devendra Kumar Prajapati
RPA Manager
Infosys
Chandigarh, India
------------------------------
There are multiple ways to remove additional spaces from a string. like split string by spaces then combine again with one space. Just wanted to check if there any other simple way to do this.
Requirement - remove additional spaces from string.
Example - "Devendra Kumar Prajapati" should be converted to "Devendra Kumar Prajapati"
------------------------------
Devendra Kumar Prajapati
RPA Manager
Infosys
Chandigarh, India
------------------------------
Devendra Kumar Prajapati
RPA Manager
Infosys
Chandigarh, India
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-22 12:55 PM
Hi Devendra ,

First check with InStr that if there are more than one extra space in the string (If "YES" InStr will return the position of the searched string)

If yes use "Replace" the function to update the Name

Hope this helps .
------------------------------
Satish Gunturi
------------------------------
First check with InStr that if there are more than one extra space in the string (If "YES" InStr will return the position of the searched string)
If yes use "Replace" the function to update the Name
Hope this helps .
Regards,
Satish Gunturi
Senior Consultant
Ignite IPA Pvt Ltd.
------------------------------
Satish Gunturi
------------------------------
