Add function to parse shorthands