Added lastIndexOf() and trim()
Fix a bug