Fixed indentation for sub_string method