separated max_subsequence by interger and string