I am using this code, this is a help from this forum.
My requirements are
put one entry on the system e.g 141921050001.01 then proceed for the further action
if that element exist(Trying to avoid and make the string unique) appear again then it will go for 141921050001.02 and so on my following the same method.
it will break when the next steps are successful and that element exist not appearing anymore