Added useful string manipulation functions for the assembler.

Signed-off-by: shrimpboyho <shrimpboyhoftw@gmail.com>