generalized more of code comments detection and added tests for
`getCodeCommentWithString`