bug fix: single quotes
bug fix: substr not a matlab function