Asset Client and BAM event publisher re fractor

it's this always delete the last char? btw what happens if name stack has 0 elements will this give an error