add prefixof, suffixof
roll back to uf implementation for substr and charat