You are given a string caption representing a video caption.
Generate a tag from caption using the following rules:
Prepend the character '#' to the result.
For the first word, convert all its characters to lowercase.
For every subsequent word, capitalize its first character and convert all remaining characters in that word to lowercase.
Join all processed words sequentially without any spaces.
If the total length of the resulting tag exceeds
Return the generated tag string.
Constraints:
caption.length
caption consists only of English letters and ' '.
You are given a string caption representing a video caption.
Generate a tag from caption using the following rules:
Prepend the character '#' to the result.
For the first word, convert all its characters to lowercase.
For every subsequent word, capitalize its first character and convert all remaining characters in that word to lowercase.
Join all processed words sequentially without any spaces.
If the total length of the resulting tag exceeds
Return the generated tag string.
Constraints:
caption.length
caption consists only of English letters and ' '.