replaced method[0] to method.charAt(0)

ie8 not support method[0]...