How to remove space before ClientID in Hash1 online in hash security assignment1

After put this phrase clientID+“-”+ClientName+“-”+ClientCountry (in_hash argument), its coming failed also in result, so maybe if i delete one space before clientID in Hash1 page its coming correct how i can delete this space.

regards,

@Ahmed-Elkhatib

Use trim

String.trim removes all the spaces before and after.

Mark as solution if found useful :wink:

Regards
Roshan

how i can put it in the phrase i try but not acceptable.
(clientID+“-”+ClientName+“-”+ClientCountry) this the value of in_hash argument.
:face_with_monocle:

Regards,

Hi Ahmed
(clientID.Trim+“-”+ClientName.Trim+“-”+ClientCountry.Trim) use this way.
If it’s working then mark it as solution :slightly_smiling_face:.

Regards,
Aditya

Hi @Ahmed-Elkhatib

(clientID.Trim+“-”+ClientName.Trim+“-”+ClientCountry.Trim)

Regards
Muhammed Roshan Mk

Hi @Ahmed-Elkhatib

(clientID+“-”+ClientName+“-”+ClientCountry).Trim

Is the best and easy practice :slight_smile:

Regards
Roshan

Thanks a lot.
Finally i passed.

:heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :star_struck: :star_struck: :star_struck:

@Ahmed-Elkhatib

Congratulations bro :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.