I am trying to remove a '-' character from a string using the two lines below, but it still returns the original string. If I execute the bottom two lines, it works, sha and sha2 are both strings. Any ideas?
sha = hash_dir(filepath) # returns an alpha-numeric string
print sha.join(c for c in sha if c.isalnum())
sha2 = "-7023680626988888157"
print sha2.join(c for c in sha2 if c.isalnum())